package com.superjson.showpro.entity;

import com.superjson.showpro.base.BaseObj;
import com.beantools.annotation.NotNull;
import com.superjson.showpro.shared.enums.JobTypeEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;

/**
 * Created By zby on 20:55 2019/5/28
 * 简历
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@Entity
@Table(name = "sp_resume")
@NotNull(ignore = {"theThirdResumeAddress"})
public class Resume extends BaseObj implements Serializable{

    private static final long serialVersionUID = 7614540831700381277L;
    /**
     * 工作类型
     */
    @Enumerated(EnumType.STRING)
    @Column(name = "job_type")
    private JobTypeEnum jobType;

    /**
     * 姓名
     */
    @Column(name = "name")
    private String name;

    /**
     * 手机号
     */
    @Column(name = "phone")
    private String phone;

    /**
     * 邮箱
     */
    @Column(name = "email")
    private String email;

    /**
     * 开源框架地址
     */
    @Column(name = "frame_address")
    private String frameAddress;

    /**
     * 博客地址
     */
    @Column(name = "blog_address")
    private String blogAddress;

    /**
     * 工作年限
     */
    @Column(name = "work_years")
    private String workYears;

    /**
     * 第三方简历地址
     */
    @Column(name = "the_third_resume_address")
    private String theThirdResumeAddress;

    /**
     * 自我介绍
     */
    @Column(name = "self_introduction")
    private String selfIntroduction;

}